const app = getApp();
const http = require('../../../utils/http.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    coupon:null,
    name:'',
    code:'',
    codeUrl:'',
    ks:'',
    js:''
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    //console.log(JSON.parse(options))
    this.setData({
      customer: app.globalData.customer
    })
  this.setData({
      name: options.name,
      code: options.code,
      codeUrl: options.code,
      ks:options.ks,
      js:options.js,
      time:options.time,
      sj:options.sj
    })
  }

})
